package com.school.gmz.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@TableName("course") // mybatis-plus
@ApiModel(description = "课程实体") // 描述实体的用途
@Data
public class Course {
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "时间", notes = "课程的时间", position = 1)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private String time;

    @ApiModelProperty(value = "课程名称", notes = "课程的名称", position = 2)
    private String course;

    @ApiModelProperty(value = "教室", notes = "上课的教室", position = 3)
    private String classroom;
}